import requests


def mgfForecast(datalist):
    data = {"datalist": datalist, }
    url = 'http://127.0.0.1:5337/mgf'
    print(str(data))
    ret = requests.get(url=url, params=data)
    print(ret.text)



if __name__ == '__main__':
    datalist = "27.6,26.8,27.7,28.0,28.0,27.4,26.8,26.9,28.1,28.0,28.0,27.8,27.9,27.2,27.7,26.8,28.0,27.6,27.3,26.9,28.1,27.5,26.9,27.5,27.7,26.8,27.3,27.3,27.9,27.3,27.5,27.7,27.3,27.6,28.8"
    mgfForecast(datalist)
